package com.test.p02simplefactory.example01;

/**
 * 葡萄
 * @author bcc
 */
public class Grape implements Fruit {

    /**
     * 是否有籽
     */
    private boolean seedless;

    @Override
    public void plant() {
        log("Grape has bean planted");
    }

    @Override
    public void grow() {
        log("Grape is growing");
    }

    @Override
    public void harvest() {
        log("Grape has been harvested");
    }

    public boolean isSeedless() {
        return seedless;
    }

    public void setSeedless(boolean seedless) {
        this.seedless = seedless;
    }

    public static void log(String msg){
        System.out.println(msg);
    }
}
